<?php

require_once 'Factory.php';
class Client
{
    public  function doSend()
    {
        //发送阿里云短信
        $conA=new concreteCreatorAliyun();
        $aliyun=$conA->FactoryMethod();
        $aliyun->send();
        //发送百度短信
        $conB=new concreteCreatorBaidu();
        $baidu=$conB->FactoryMethod();
        $baidu->send();

    }


}
$test=new Client();
$test->doSend();
